package com.zhudeshuai.zhudemolist.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.zhudeshuai.zhudemolist.R;
import com.zhudeshuai.zhudemolist.base.BaseActivity;
import com.zhudeshuai.zhudemolist.widget.MySurfaceView;

public class SurfaceViewDemoActivity extends BaseActivity {

    private MySurfaceView surfaceView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_surface_view_demo);
        surfaceView = (MySurfaceView) findViewById(R.id.mySurfaceView);


    }


    public void start(View view) {
        surfaceView.start();
    }


    public static void open(Activity activity) {
        activity.startActivity(new Intent(activity, SurfaceViewDemoActivity.class));
    }
}
